package com.mao.object;

public class Student {
    String name;
    double chinese;
    double math;

    public void printAllScore(){
        // 所有成绩和
        System.out.println(name+
                "的总成绩是："+(chinese+math));
    }
    public void printAverage(){
        System.out.println("姓名："+name+
                "，平均成绩："+(chinese+math)/2);
    }
}
